﻿using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using UnityEngine;
using UnityEngine.UI;

public class Stage : MonoBehaviour
{
    public string num;
    public Image color;
    public Text numberTxt;

    public Image fillimg;
    private float fillAmount = 0f;

    // Start is called before the first frame update
    void Start()
    {
        fillimg = transform.Find("line/Image").GetComponent<Image>();
        numberTxt = transform.Find("Text").GetComponent<Text>();
        color = transform.Find("bg/color").GetComponent<Image>();

        numberTxt.text = num.ToString();
    }

    // Update is called once per frame
    void Update()
    {
        fillAmount = GameInit.instance.amount;
        fillimg.fillAmount = fillAmount;
    }
    
    public void SetInfo(string n)
    {
        num = n;
    }
}
